import { request } from './request.js';
//获取场馆列表
export const getVenuesList = (params) => {
  return request({
    url: '/Maintain/SelectActivityVenues/btn-venussearch',
    method: 'get',
    params,
  });
};
//新增场馆
export const addVenues = (data) => {
  return request({
    url: '/Maintain/AddActivityVenues/btn-venusadd',
    method: 'post',
    data,
  });
};
//修改场馆
export const editVenues = (data) => {
  return request({
    url: '/Maintain/UpdateActivityVenues/btn-venusupdate',
    method: 'post',
    data,
  });
};
//删除场馆
export const delVenues = (params) => {
  return request({
    url: '/Maintain/DeleteActivityVenues/btn-venusdelete',
    method: 'get',
    params,
  });
};
//批量插入场馆
export const addVenuesList = (data) => {
  return request({
    url: '/Maintain/AddActivityVenuesList/btn-venusload',
    method: 'post',
    data,
  });
};

/** 首页 数据接口*/
// 场馆列表
export const GetActiVenueInfo = (data) => {
  return request({
    url: '/Maintain/GetActivityVenueslList',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  });
};
// 场馆详情
export const GetActiVenueDetail = (data) => {
  return request({
    url: '/Maintain/GetVenuesInfo',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  });
};
//正在活动的场馆
export const GetMatchingVenues = (data) => {
  return request({
    url: '/Maintain/GetMatchingVenues',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  });
};
